define([
    'jquery',
    'underscore',
    'backbone',
    //'text!templates/form/form_add_admin.html'
    ], function($, _, Backbone,loginTemplate){
        var $html_loadding = '<div class="caculation-report"><img style="margin-left:170px" src="'+$template_admincp_url+'img/standard/loaders/loading64.gif"/></div>';
        var settingView = Backbone.View.extend({
            el: $("#main"),
            initialize: function(){
				
            },
            events: {
                
            },
            
            index: function(){
                tinymce.init({
                    selector: "textarea.setting_hotline",
                    theme: "modern",
                    fontsize_formats: "8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 26pt 36pt",
                    plugins: [
                        "advlist autolink lists link charmap preview hr anchor pagebreak",
                        "searchreplace visualblocks visualchars code",
                        "insertdatetime nonbreaking save table contextmenu directionality",
                        "emoticons paste textcolor"
                    ],
                    toolbar1: "insertfile undo redo | styleselect | fontselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link",
                    toolbar2: "preview | forecolor backcolor emoticons",
                    image_advtab: true,
                    relative_urls: false,
                    force_br_newlines : false,
                    force_p_newlines : false,
                    forced_root_block : '',
                });
                tinymce.init({
                    selector: "textarea.setting_footer",
                    theme: "modern",
                    fontsize_formats: "8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 26pt 36pt",
                    plugins: [
                        "advlist autolink lists link charmap preview hr anchor pagebreak",
                        "searchreplace visualblocks visualchars code",
                        "insertdatetime nonbreaking save table contextmenu directionality",
                        "emoticons paste textcolor"
                    ],
                    toolbar1: "insertfile undo redo | styleselect | fontselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link",
                    toolbar2: "preview | forecolor backcolor emoticons",
                    image_advtab: true,
                    relative_urls: false,
                    force_br_newlines : false,
                    force_p_newlines : false,
                    forced_root_block : '',
                });
                $("#form").validate({
                    ignore: null,
                    ignore: 'input[type="hidden"]',
                    submitHandler: function(form){
                        form.submit();
                    }
                });
            },

            render: function(){
                if(typeof this[$app.action] != 'undefined'){
                    new this[$app.action];
                }
            }
        });
        return settingView = new settingView;
    });
